package cn.common.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
public class BusinessException extends BaseException {
    IError error = DefaultError.BUSINESS_ERROR;

    //调用异常
    public BusinessException(String message) {
        super(message);
        error.setMessage(message);
    }

}
